package com.rocky.ssm.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rocky.ssm.mapper.UserMapper;
import com.rocky.ssm.model.User;

@Service
public class UserService implements IUserService {

	@Autowired
	private UserMapper usermapper;
	
	public User load(int id) {
	return usermapper.selectByPrimaryKey(id);
	}

}
